package club.yuit.rmq.model;

import lombok.Data;
import org.apache.rocketmq.common.TopicConfig;
import org.apache.rocketmq.remoting.protocol.route.BrokerData;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * @author: yuit
 * @date: 2023/12/08 14:03
 */
@Data
public class TopicDetails {

    private String name;
    private Set<String> cluster = new HashSet<>();
    private List<BrokerData> brokerData;
    private List<TopicConfig> topicConfig;


    public String getClusterString(){
        return String.join("|",cluster);
    }

}
